#pragma once
#include <fstream>
#include <string>

using namespace std;
class HighScoreData
{
private:
	std::string playerName;
	int playerScore;
public:
	HighScoreData(void);
	HighScoreData( std::string name, int score );
	~HighScoreData(void);

	std::string GetName() const { return playerName; }
	int GetScore() const { return playerScore; }

	void SetName( std::string name ) { this->playerName = name; }
	void SetScore( int score ) { this->playerScore = score; }


	friend ostream& operator<<( ostream &out, HighScoreData &hop );
	friend istream& operator>>( istream &in, HighScoreData &hop );

	friend bool operator==( HighScoreData &vop, HighScoreData &hop );
	friend bool operator!=( HighScoreData &vop, HighScoreData &hop );

	friend bool operator<( HighScoreData &vop, HighScoreData &hop );

};

